import { Controller, Post, Query } from '@nestjs/common';
import { CatalogService } from './catalog.service';

@Controller('main')
export class CatalogController {
    constructor(private catalogService: CatalogService) {}

    @Post('read/chapterlist')
    findCatalog (@Query() {bookId}) {
        console.log(bookId)
        const catalog = this.catalogService.findList(bookId)
        return catalog
    }
}
